package com.deng.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

/**
 * @create 2020-11-20 14:31
 */
@Controller
public class TestController {
    @RequestMapping("/test")
    public String test(Model model) {
        model.addAttribute("msg", "<h1>first,test</h1>");
        model.addAttribute("users", Arrays.asList("张三", "李四"));
        return "test";
    }
}
